

const AvenirSQL = require('./AvenirSQL/index');
async function main() {
    let initJson = {
        ip: '127.0.0.1',
        port: 44944,
        user: 'myweb',
        password: '123456',
        database: '11',
    }

    AvenirSQL.init(initJson);
    let conn = await AvenirSQL.connect();
    console.log(conn);
    // console.log(conn.data);

    // let sql = `select * from t where e = '84563'`;
    // console.log("查询sql为 ",sql);
    // let res = await AvenirSQL.dbop(sql);

    // console.log("数据库sql操作返回值为 ",res);

    let t = await AvenirSQL.beginTrans(conn.sign);
    console.log(t)
}

main();